/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package motiveai.tests;

import motiveai.components.Agent;
import motiveai.components.BehaviourEntity;
import motiveai.factors.Environment;

/**
 *
 * @author oxplay
 */
public class Test1Idle extends BehaviourEntity<Agent> {

    public Test1Idle() {
    }

    public boolean canBeUsed(Agent agent, Environment environment) {
        return true;
    }

    @Override
    public float behave(Agent agent, Environment environment) {
        environment.setBooleanFactor("needARest", false);
        return 0;
    }
}
